clear all

** Set working directory: please set your own
/*
cd "~/Dropbox/sanctions_replication/"
*/
** Open dataset
use data/survey_clean.dta, clear

* Run analyses
regr pbeliefs_vox_num vox_first, cluster(id)
est store order_effects_1

regr pmoral_vox_num vox_first, cluster(id)
est store order_effects_2

regr pharm_vox_num vox_first, cluster(id)
est store order_effects_3

* Make table
esttab order_effects_1 order_effects_2 order_effects_3 ///
using tables/tableb5.tex, ///
mtitles("Socially appropriate" "Morally appropriate" "Harmful (inverted)") ///
coeflabels(vox_first "Vox shown first" _cons "Constant") se replace star(* 0.10 ** 0.05 *** 0.01) ///
addnotes("Standard errors are clustered by respondent")
